﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020008B9 RID: 2233
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class HandleFriendCsReq : IMessage<HandleFriendCsReq>, IMessage, IEquatable<HandleFriendCsReq>, IDeepCloneable<HandleFriendCsReq>, IBufferMessage
	{
		// Token: 0x17001C19 RID: 7193
		// (get) Token: 0x060063D2 RID: 25554 RVA: 0x00108D90 File Offset: 0x00106F90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<HandleFriendCsReq> Parser
		{
			get
			{
				return HandleFriendCsReq._parser;
			}
		}

		// Token: 0x17001C1A RID: 7194
		// (get) Token: 0x060063D3 RID: 25555 RVA: 0x00108D97 File Offset: 0x00106F97
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return HandleFriendCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001C1B RID: 7195
		// (get) Token: 0x060063D4 RID: 25556 RVA: 0x00108DA9 File Offset: 0x00106FA9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return HandleFriendCsReq.Descriptor;
			}
		}

		// Token: 0x060063D5 RID: 25557 RVA: 0x00108DB0 File Offset: 0x00106FB0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public HandleFriendCsReq()
		{
		}

		// Token: 0x060063D6 RID: 25558 RVA: 0x00108DB8 File Offset: 0x00106FB8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public HandleFriendCsReq(HandleFriendCsReq other) : this()
		{
			this.isAccept_ = other.isAccept_;
			this.uid_ = other.uid_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060063D7 RID: 25559 RVA: 0x00108DE9 File Offset: 0x00106FE9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public HandleFriendCsReq Clone()
		{
			return new HandleFriendCsReq(this);
		}

		// Token: 0x17001C1C RID: 7196
		// (get) Token: 0x060063D8 RID: 25560 RVA: 0x00108DF1 File Offset: 0x00106FF1
		// (set) Token: 0x060063D9 RID: 25561 RVA: 0x00108DF9 File Offset: 0x00106FF9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsAccept
		{
			get
			{
				return this.isAccept_;
			}
			set
			{
				this.isAccept_ = value;
			}
		}

		// Token: 0x17001C1D RID: 7197
		// (get) Token: 0x060063DA RID: 25562 RVA: 0x00108E02 File Offset: 0x00107002
		// (set) Token: 0x060063DB RID: 25563 RVA: 0x00108E0A File Offset: 0x0010700A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Uid
		{
			get
			{
				return this.uid_;
			}
			set
			{
				this.uid_ = value;
			}
		}

		// Token: 0x060063DC RID: 25564 RVA: 0x00108E13 File Offset: 0x00107013
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as HandleFriendCsReq);
		}

		// Token: 0x060063DD RID: 25565 RVA: 0x00108E21 File Offset: 0x00107021
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(HandleFriendCsReq other)
		{
			return other != null && (other == this || (this.IsAccept == other.IsAccept && this.Uid == other.Uid && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060063DE RID: 25566 RVA: 0x00108E60 File Offset: 0x00107060
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.IsAccept)
			{
				num ^= this.IsAccept.GetHashCode();
			}
			if (this.Uid != 0U)
			{
				num ^= this.Uid.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060063DF RID: 25567 RVA: 0x00108EB8 File Offset: 0x001070B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060063E0 RID: 25568 RVA: 0x00108EC0 File Offset: 0x001070C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060063E1 RID: 25569 RVA: 0x00108ECC File Offset: 0x001070CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Uid != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.Uid);
			}
			if (this.IsAccept)
			{
				output.WriteRawTag(56);
				output.WriteBool(this.IsAccept);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060063E2 RID: 25570 RVA: 0x00108F28 File Offset: 0x00107128
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.IsAccept)
			{
				num += 2;
			}
			if (this.Uid != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Uid);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060063E3 RID: 25571 RVA: 0x00108F74 File Offset: 0x00107174
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(HandleFriendCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.IsAccept)
			{
				this.IsAccept = other.IsAccept;
			}
			if (other.Uid != 0U)
			{
				this.Uid = other.Uid;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060063E4 RID: 25572 RVA: 0x00108FC4 File Offset: 0x001071C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060063E5 RID: 25573 RVA: 0x00108FD0 File Offset: 0x001071D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 32U)
				{
					if (num != 56U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.IsAccept = input.ReadBool();
					}
				}
				else
				{
					this.Uid = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400261E RID: 9758
		private static readonly MessageParser<HandleFriendCsReq> _parser = new MessageParser<HandleFriendCsReq>(() => new HandleFriendCsReq());

		// Token: 0x0400261F RID: 9759
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002620 RID: 9760
		public const int IsAcceptFieldNumber = 7;

		// Token: 0x04002621 RID: 9761
		private bool isAccept_;

		// Token: 0x04002622 RID: 9762
		public const int UidFieldNumber = 4;

		// Token: 0x04002623 RID: 9763
		private uint uid_;
	}
}
